/*
 * BSM6.0
 *
 * Copyright 2012-2013 (C) SINODATA CO., LTD. All Rights Reserved.
 */
package com.sinodata.bsm.common.vo;

import java.io.Serializable;
import java.util.Arrays;
import java.util.Date;

/**
 * <p>
 * Description: 该对象用于多个指标查询结果的封装     指标值按传入存储位置的顺序排序
 * </p>
 *
 * @author wangyazhou
 * @version 1.0

 * <p>
 * History: 
 *
 * Date                     Author         Version     Description
 * ---------------------------------------------------------------------------------
 * Jul 5, 2012 5:09:51 PM          wangyazhou        1.0         To create
 * </p>
 *
 * @since 
 * @see     
 */
public class PropertyValue implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    private Long resId;

    private Date time;

    private String[] values;

    public PropertyValue() {

    }

    /**
     * 
     * @param length
     */
    public PropertyValue(int length) {
        values = new String[length];
    }

    public Long getResId() {
        return resId;
    }

    public void setResId(Long resId) {
        this.resId = resId;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String[] getValues() {
        return values;
    }

    public void setValues(String... values) {
        this.values = values;
    }

    @Override
    public String toString() {
        return "PropertyValue [resId=" + resId + " time=" + time + " values=" + Arrays.toString(values) + "]";
    }

}
